package com.jshan.blog.enums;

import lombok.Getter;

@Getter
public enum BizCodeEnums {
    SUCCESS(200, "成功"),
    FAILE(500, "失败"),
    UNKNOWN_EXCEPTION(10000, "系统未知错误"),
    VALID_EXCEPTION(10001, "参数格式校验失败"),
    UPDATE_FAILE(10002, "修改失败"),
    INSERT_FAILE(10003, "插入失败"),
    DELETE_FAILE(10004, "删除失败"),
    LIST_FAILE(10005, "不能为空"),
    NO_LOGIN(401, "没有登录"),
    UN_PERM(403, "您没有权限，请联系管理员添加！")
    ;
    private Integer code;
    private String msg;

    BizCodeEnums(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
